package org.example.service.impl;

import org.example.domain.SysPost;
import org.example.mapper.SysPostMapper;
import org.example.service.SysPostService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class SysPostServiceImpl implements SysPostService {
    @Autowired
    SysPostMapper sysPostMapper;
    @Override
    public List<SysPost> postsList() {
        return sysPostMapper.postsList();
    }

    @Override
    public List<SysPost> list(SysPost sysPost) {

        return sysPostMapper.list(sysPost);
    }

    @Override
    public boolean add(SysPost sysPost) {
        return sysPostMapper.add(sysPost);
    }

    @Override
    public boolean update(SysPost sysPost) {
        return sysPostMapper.update(sysPost);
    }

    @Override
    public boolean del(Long postId) {
        return sysPostMapper.del(postId);
    }

    @Override
    public boolean pishan(Integer ids) {
        return sysPostMapper.pishan(ids);
    }

    @Override
    public List<SysPost> lists() {
        return sysPostMapper.lists();
    }

}
